package o;

import java.io.IOException;

public final class afh {
    public long[] ʻ;
    public boolean ʻॱ;
    public int[] ʼ;
    public int[] ʽ;
    public afb ˊ;
    public afe ˊॱ;
    public int ˋ;
    public boolean[] ˋॱ;
    public long ˎ;
    public long ˏ;
    public boolean ˏॱ;
    public long[] ͺ;
    public long ॱ;
    public boolean[] ॱˊ;
    public anc ॱˋ;
    public int ॱॱ;
    public long ॱᐝ;
    public int[] ᐝ;
    public int ᐝॱ;

    public void ˋ() {
        this.ˋ = 0;
        this.ॱᐝ = 0;
        this.ˏॱ = false;
        this.ʻॱ = false;
        this.ˊॱ = null;
    }

    public void ॱ(int i, int i2) {
        this.ˋ = i;
        this.ॱॱ = i2;
        if (this.ʽ == null || this.ʽ.length < i) {
            this.ʻ = new long[i];
            this.ʽ = new int[i];
        }
        if (this.ᐝ == null || this.ᐝ.length < i2) {
            int i3 = (i2 * 125) / 100;
            this.ᐝ = new int[i3];
            this.ʼ = new int[i3];
            this.ͺ = new long[i3];
            this.ॱˊ = new boolean[i3];
            this.ˋॱ = new boolean[i3];
        }
    }

    public void ˏ(int i) {
        if (this.ॱˋ == null || this.ॱˋ.ॱ() < i) {
            this.ॱˋ = new anc(i);
        }
        this.ᐝॱ = i;
        this.ˏॱ = true;
        this.ʻॱ = true;
    }

    public void ॱ(adv o_adv) throws IOException, InterruptedException {
        o_adv.ˏ(this.ॱˋ.ˏ, 0, this.ᐝॱ);
        this.ॱˋ.ˋ(0);
        this.ʻॱ = false;
    }

    public void ॱ(anc o_anc) {
        o_anc.ˎ(this.ॱˋ.ˏ, 0, this.ᐝॱ);
        this.ॱˋ.ˋ(0);
        this.ʻॱ = false;
    }

    public long ॱ(int i) {
        return this.ͺ[i] + ((long) this.ʼ[i]);
    }

    public boolean ˊ(int i) {
        return this.ˏॱ && this.ˋॱ[i];
    }
}
